package com.tom.util;

import com.tom.dto.ArticleParamDTO;

import java.util.ArrayList;
import java.util.List;

/**
 * All rights Reserved, Designed By www.tom.com
 *
 * @Author 徐望成
 * @Date 2023/11/16 12:17
 * @PackageName:com.tom.controller.util
 * @ClassName: ArticleParamFactory
 * @Description: TODO
 * @Copyright: 2019 www.tomonline-inc.com Inc. All rights reserved.
 * 注意：本内容仅限于TOM集团内部传阅，禁止外泄以及用于其他的商业目
 * @Version 1.0
 */
public class ArticleParamFactory {


    public static List<ArticleParamDTO> builderArchiveArticle() {

        List<ArticleParamDTO> list = new ArrayList<>();
        String[] articleNos = {"7000463", "7000463", "7000464", "7000465", "7000466", "7009148", "7009150", "7009145", "7009136", "7009152", "7009130", "7009131", "7009139", "7009138", "7009134", "7009146", "7009129", "7009137", "7009147", "7009133", "7009142", "7009143", "7009144", "7009141", "7009135", "7009149", "7009132", "7009151",};

        for (String articleNo : articleNos) {
            ArticleParamDTO articleParamDTO = new ArticleParamDTO();
            articleParamDTO.setArticleNo(articleNo);
            articleParamDTO.setType("4");
            list.add(articleParamDTO);
        }

        return list;
    }


    public static List<ArticleParamDTO> builderFreeArticle() {

        List<ArticleParamDTO> list = new ArrayList<>();
        String[] articleNos = {"3013839", "3013729", "3013888", "3013889", "3013890", "3013884", "3013804", "3013862", "3013881", "3013880", "3013879", "3013868", "3013878", "3013876", "3013877", "3013874", "3013867", "3013871", "3013870", "3013875", "3013471", "3013864", "3013866", "3013860", "3013863", "3013865", "3013861", "3013851", "3013852", "3013857", "3013853", "3013849", "3013848", "3013846", "3004661", "3013838", "3013812", "3013843", "3013847", "3013847", "3013829", "3013825", "3013842", "3013833", "3013839", "3013789", "3009574", "3013837", "3013828", "3013828", "3013828", "3013828", "3013828", "3013828",};

        for (String articleNo : articleNos) {
            ArticleParamDTO articleParamDTO = new ArticleParamDTO();
            articleParamDTO.setArticleNo(articleNo);
            articleParamDTO.setType("3");
            list.add(articleParamDTO);
        }

        return list;
    }

}
